package cn.itsource.system.annotation;

import cn.itsource.system.mapper.PermissionMapper;
import cn.itsource.system.service.IPermissionService;
import cn.itsource.system.service.impl.PermissionServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
@Component
public class PermissionScanInitInstener implements CommandLineRunner {

    @Autowired
    private IPermissionService permissionService;

    @Override
    public void run(String... args) throws Exception {
        permissionService.scanPermission();
    }
}
